package com.talos.ums.controller.admin.appversion.vo;

import com.talos.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static com.talos.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 移动应用版本管理分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class UmsAppVersionPageReqVO extends PageParam {

    @Schema(description = "来源（司机端：otwb_tms_driver，站点端：otwb_tms_station）")
    private String source;

    @Schema(description = "类型（ios,android,ipad）", example = "2")
    private String type;

    @Schema(description = "版本号")
    private String versionNum;

    @Schema(description = "下载地址", example = "https://www.iocoder.cn")
    private String url;

    @Schema(description = "app提示语")
    private String tips;

    @Schema(description = "备注", example = "你说的对")
    private String remark;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "创建人工号")
    private String creatorCode;

    @Schema(description = "创建人姓名", example = "李四")
    private String creatorName;

    @Schema(description = "修改时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] modifyTime;

    @Schema(description = "修改人工号")
    private String modifierCode;

    @Schema(description = "修改人姓名", example = "王五")
    private String modifierName;

    @Schema(description = "删除标记")
    private Integer deleted;

    @Schema(description = "租户id", example = "16306")
    private Long tenantId;

}
